/// Coder: Jose Ricardo Mello Viana - 2008
/// Bugs? e-mail me: zezim.ricardo@gmail.com

#ifndef UTILS_H_
#define UTILS_H_

#include "typedefs.h"

/// Rotate around generic axis.
/// @param angle given rotation angle
/// @param vec given vector for rotation
/// @param axis given rotation axis
/// @param isDegree true if is degree the angle unit
/// @return rotated vector
Vector3D rotate(double angle, Vector3D vec, Vector3D axis, bool isDeg);

/// Split the string line in words
/// @param line given line for split
/// @return vector of words
vector<string> readWords(string line);

/// Show message for bvh loader error
void loadBvhFail();

#endif /*UTILS_H_*/
